/**   
 * Copyright 2011 COMERE Harold
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *   http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package etrl.core;

import etrl.vecmath.Quat4f;
import etrl.vecmath.Vector3f;

/**
 * \class TransformManipulator
 * \brief Listens to events input an allows to manipulate a Transform.
 * @author harold
 *
 */
public abstract class TransformManipulator implements EventListener
{
	/**
	 * \brief The manipulated transform data
	 */
	protected TransformData _transform = null;
	
	/**
	 * \brief Initializes the transform manipulator
	 */
	protected TransformManipulator()
	{
		_transform = new TransformData();
	}
	
	/**
	 * \brief Gets the position of the manipulated transform.
	 * @return Transform position.
	 */
	public Vector3f getTransformPosition() { return _transform.getPosition(); }
	
	/**
	 * \brief Gets the orientation of the manipulated transform
	 * @return Transform orientation.
	 */
	public Quat4f getTransformOrientation() { return _transform.getOrientation(); }
}
